package com.xc.service;

import com.xc.common.ServerResponse;
import com.xc.pojo.UserBank;

import javax.servlet.http.HttpServletRequest;

/**
 * @author mipha
 * @version 1.0
 * @date 2019/2/16 3:02 PM
 */
public interface IUserBankService {


    //  查询用户的银行卡
    UserBank findUserBankByUserId(Integer userId);


    ServerResponse addBank(UserBank bank , HttpServletRequest request);
    ServerResponse updateBank(UserBank bank , HttpServletRequest request);


    //  获取银行信息
    ServerResponse getBankInfo(HttpServletRequest request);


    /**
     *  管理员修改银行卡
     */
    ServerResponse updateBankByAdmin(UserBank userBank);
    ServerResponse getBank(Integer userId);



}



